#ifndef MY_MAINWINDOW_H
#define MY_MAINWINDOW_H

#include <qmainwindow.h>

#include <qmap.h>

class MyListView;
class MyListViewItem;
class QPopupMenu;

typedef QMap<QString, MyListViewItem*> user_item_t;

class MyMainWindow
	: public QMainWindow
{
	Q_OBJECT

public:
	MyMainWindow();
	virtual ~MyMainWindow();

	QPopupMenu * m_menuView;
	MyListView * myListView;
	bool m_bShowOffline;
	user_item_t user_item;

	void addUser(QString name, bool bAvailable, bool havePhone, QString status);

	enum
	{
		viewShowOnePage = 1,
		viewSortByName,
		viewShowOffline,
		viewShowPictures,
		viewShowAllAddressBookContacts
	};

public slots:
	void onShowOffline();
	void onShowPictures();
	void onSortByName();
	void clickedAdd();
};


#endif //MY_MAINWINDOW_H
